package com.sky.service;

import com.sky.dto.AddressBookDTO;
import com.sky.entity.AddressBook;
import com.sky.result.Result;

import java.util.List;

/**
 * PROJECT_NAME: sky-take-out
 * NAME: AddressBookService
 *
 * @AUTHOR: zhang
 * DATE: 2023/12/1
 * DESCRIPTION :
 */
public interface AddressBookService {
    Result<List<AddressBook>> selectAllAddressBook();

    void inseertAddressBook(AddressBookDTO addressBookDTO);

    void update(AddressBook addressBook);

    AddressBook selectAddressBookById(Long id);

    void updateAddressBook(AddressBookDTO addressBookDTO);

    void deleteAddressBook(Long id);

    AddressBook getDefaultAddressBook();

}
